package org.jeecg.modules.wms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 供应商信息表
 * @Author: jeecg-boot
 * @Date: 2023-07-18
 * @Version: V1.0
 */
@Data
@TableName("wms_supplier")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wms_supplier对象", description="供应商信息表")
public class WmsSupplier implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**供应商编码*/
    @Excel(name = "供应商编码", width = 15)
    @ApiModelProperty(value = "供应商编码")
    private String supplierCode;
    
    /**供应商名称*/
    @Excel(name = "供应商名称", width = 20)
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;
    
    /**供应商类型（1-生产商，2-经销商，3-代理商等）*/
    @Excel(name = "供应商类型", width = 15, dicCode = "supplier_type")
    @ApiModelProperty(value = "供应商类型")
    private Integer supplierType;
    
    /**主要联系人*/
    @Excel(name = "主要联系人", width = 15)
    @ApiModelProperty(value = "主要联系人")
    private String contactPerson;
    
    /**联系电话*/
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String contactPhone;
    
    /**电子邮箱*/
    @Excel(name = "电子邮箱", width = 20)
    @ApiModelProperty(value = "电子邮箱")
    private String email;
    
    /**地址*/
    @Excel(name = "地址", width = 30)
    @ApiModelProperty(value = "地址")
    private String address;
    
    /**税号*/
    @Excel(name = "税号", width = 20)
    @ApiModelProperty(value = "税号")
    private String taxNumber;
    
    /**开户银行*/
    @Excel(name = "开户银行", width = 20)
    @ApiModelProperty(value = "开户银行")
    private String bankName;
    
    /**银行账号*/
    @Excel(name = "银行账号", width = 20)
    @ApiModelProperty(value = "银行账号")
    private String bankAccount;
    
    /**信用等级（A、B、C、D等）*/
    @Excel(name = "信用等级", width = 10, dicCode = "supplier_credit_level")
    @ApiModelProperty(value = "信用等级")
    private String creditLevel;
    
    /**合作状态（1-潜在，2-合作中，3-暂停合作，4-终止合作）*/
    @Excel(name = "合作状态", width = 15, dicCode = "supplier_cooperation_status")
    @ApiModelProperty(value = "合作状态")
    private Integer cooperationStatus;
    
    /**备注*/
    @Excel(name = "备注", width = 30)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
} 